import { ResouceConst } from "../../../component/gconst/ResouceConst";
import { ImagesConst } from "../../resource/ImagesConst";
import { SkillInfo } from "../../model/SkillInfo";
import { TSkill } from "../../../../Message/Db/Tables/TSkill";
type int = number;
//class SkillInfoPanel
    
    export  class SkillInfoPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this._bgBmp = ResouceConst.getScaleBitmap(ImagesConst.WindowCenterB);
            this._bgBmp.width = 218;
            this._bgBmp.height = 389;
            addChild(this._bgBmp);
            return;
        }

        public updateInfo(arg1: SkillInfo): void
        {
            this._skillMapData = arg1;
            this._skill = arg1.tSkill;
            return;
        }

        public updateCondition(): void
        {
            return;
        }

        public levelUpReq(arg1: SkillInfo): void
        {
            return;
        }

        public autoUseAble(arg1: SkillInfo): void
        {
            return;
        }

        public get skillId(): int
        {
            if (this._skill) 
            {
                return this._skill.skillId;
            }
            return 0;
        }

        public get skillType(): int
        {
            if (this._skill) 
            {
                return this._skill.skillType;
            }
            return 0;
        }

        public get skillPos(): int
        {
            if (this._skillMapData) 
            {
                return this._skillMapData.position;
            }
            return 0;
        }

        public get skillInfo(): SkillInfo
        {
            return this._skillMapData;
        }

        public set optAble(arg1: Boolean)
        {
            this._optAble = arg1;
            return;
        }

        public guideSkillLearn(arg1: Function): void
        {
            return;
        }

        public guideHide(): void
        {
            return;
        }

        protected /* var */_bgBmp: Object /* flash.display.Bitmap */;

        protected /* var */_skill: TSkill;

        protected /* var */_skillMapData: SkillInfo;

        protected /* var */_optAble: Boolean=true;
    }
